package com.cinc.ebc.sd.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 销售订单明细
 * @Author: jeecg-boot
 * @Date: 2022-09-25
 * @Version: V1.0
 */
@ApiModel(value = "sd_sales_order_detail对象", description = "销售订单明细")
@Data
public class SdSalesOrderDetailModel {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 主表ID
     */
    @ApiModelProperty(value = "主表ID")
    private String mainId;
    /**
     * 行号
     */
    @Excel(name = "行号", width = 15)
    @ApiModelProperty(value = "行号")
    private Integer lineNo;
    /**
     * 物料ID
     */
    @Excel(name = "物料ID", width = 15)
    @ApiModelProperty(value = "物料ID")
    private String materialId;
    /**
     * 物料编号
     */
    @Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private String materialNo;
    /**
     * 物料描述
     */
    @Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private String materialDesc;
    /**
     * 订单数量
     */
    @Excel(name = "订单数量", width = 15)
    @ApiModelProperty(value = "订单数量")
    private java.math.BigDecimal qty;
    /**
     * 单位
     */
    @Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private String unit;
    /**
     * 含税单价
     */
    @Excel(name = "含税单价", width = 15)
    @ApiModelProperty(value = "含税单价")
    private java.math.BigDecimal unitPrice;
    /**
     * 含税金额
     */
    @Excel(name = "含税金额", width = 15)
    @ApiModelProperty(value = "含税金额")
    private java.math.BigDecimal sumPrice;
    /**
     * 税率
     */
    @Excel(name = "税率", width = 15, dictTable = "mdm_tax_rate", dicText = "value", dicCode = "value")
    @ApiModelProperty(value = "税率")
    private java.math.BigDecimal taxRate;
    /**
     * 税额
     */
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal taxPrice;
    /**
     * 交货日期
     */
    @Excel(name = "交货日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "交货日期")
    private Date deliveryDate;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "sd_sales_status")
    @Dict(dicCode = "sd_sales_status")
    @ApiModelProperty(value = "状态")
    private String status;
    /**
     * 通知单数量
     */
    @Excel(name = "通知单数量", width = 15)
    @ApiModelProperty(value = "通知单数量")
    private java.math.BigDecimal noticeQty;
    /**
     * 装车数量
     */
    @Excel(name = "装车数量", width = 15)
    @ApiModelProperty(value = "装车数量")
    private java.math.BigDecimal loadQty;
    /**
     * 交货数量
     */
    @Excel(name = "交货数量", width = 15)
    @ApiModelProperty(value = "交货数量")
    private java.math.BigDecimal deliveryQty;
    /**
     * 可交货数量
     */
    @Excel(name = "可交货数量", width = 15)
    @ApiModelProperty(value = "可交货数量")
    private java.math.BigDecimal undeliveryQty;
    /**
     * 合同明细ID
     */
    @Excel(name = "合同明细ID", width = 15)
    @ApiModelProperty(value = "合同明细ID")
    private String contractDetailId;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 租户ID
     */
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;


    // 主表
    /**
     * 单据编号
     */
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private java.lang.String orderNo;
    /**
     * 订单类型
     */
    @Excel(name = "订单类型", width = 15, dicCode = "sd_sales_order_type")
    @Dict(dicCode = "sd_sales_order_type")
    @ApiModelProperty(value = "订单类型")
    private java.lang.String orderType;
    /**
     * 客户
     */
    @Excel(name = "客户", width = 15, dictTable = "mdm_customer", dicText = "cust_full_name", dicCode = "id")
    @Dict(dictTable = "mdm_customer", dicText = "cust_full_name", dicCode = "id")
    @ApiModelProperty(value = "客户")
    private java.lang.String customerId;
    /**
     * 合同ID
     */
    @Excel(name = "合同ID", width = 15)
    @ApiModelProperty(value = "合同ID")
    private java.lang.String contractId;
    /**
     * 合同号
     */
    @Excel(name = "合同号", width = 15)
    @ApiModelProperty(value = "合同号")
    private java.lang.String contractNo;
    /**
     * 项目
     */
    @Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private java.lang.String projectId;
    /**
     * 销售员
     */
    @Excel(name = "销售员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "销售员")
    private java.lang.String salesman;
    /**
     * 单据日期
     */
    @Excel(name = "单据日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "单据日期")
    private java.util.Date orderDate;
    /**
     * 送达地址
     */
    @Excel(name = "送达地址", width = 15)
    @ApiModelProperty(value = "送达地址")
    private java.lang.String deliveryAddress;

}
